﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace SmartWeighMonitor.Utils
{
    [ValueConversion(typeof(string), typeof(string))]
    class BillStatusConverter : IValueConverter
    {
        public object Convert(object value, Type typeTarget, object param, CultureInfo culture)
        {
            value = value == null ? "1" : value;
            string strValue = value.ToString();
            switch (strValue)
            {
                case "1":
                    return "已预约";
                case "2":
                    return "已制卡";
                case "3":
                    return "门禁入";
                case "4":
                    return "称皮重";
                case "5":
                    return "已卸油";
                case "6":
                    return "称毛重";
                case "7":
                    return "已结算";
                case "8":
                    return "门禁出";
                case "9":
                    return "已过期";
                case "10":
                    return "预约等待";
                case "11":
                    return "已作废";
                case "20":
                    return "排队中";
                case "21":
                    return "已叫号";
                case "23":
                    return "车辆报到";
                case "24":
                    return "司机登记";
                default:
                    return "已预约";

            }
        }
        public object ConvertBack(object value, Type typeTarget, object param, CultureInfo culture)
        {
            return "";
        }
    }
}
